home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
waitfr11.zip
/
WAITFOR.DOC
< prev
next >
Wrap
Text File
|
1993-12-12
|
3KB
|
76 lines
WaitFor
================================================================
I needed a delay in batch files other than using the PAUSE
command which makes the user make a key press. Some displays or
program outputs would just flash on the screen and were gone. I
did not like having to try and press the Pause key at just the
right instant. I also wanted a delay with and without a screen
display and so WaitFor was developed.
Syntax is pretty straight forward:
WAITFOR n [nul]
Where "n" is the number of seconds from 1 to 3600 (hour). If
you exceed 3600 the program defaults to 1 second. Nul means to
suppress screen writes. Typing in WAITFOR with no options
displays the help screen.
Optional syntax: WAITFOR nul
This does a default one second delay without any screen
displays. So "WAITFOR 1 nul" and "WAITFOR nul" get you the same
results.
Sample batch file:
Echo off < turn echo off
cls < clear screen
chkdsk c: /f < run check disk on C:
waitfor 2 nul < delay to read screen
cls < clear screen
chkdsk d:/f < run check disk on D:
waitfor 2 nul < delay to read screen
defrag c: /f < defragment C:
defrag d: /f /b < defragment D: and boot system
The above example would do a Checkdisk (Chkdsk) on drive C:
and D: with a two second delay after each one. The delay gives
you just enough time to see what is on the screen before going on
to the next command. (I use a similar batch file that is
performed once per day using the program 1ADAY calling my daily
once batch file.) It would then perform a Defrag (DOS 6.0+) on
the same two drives and reboot when finished. Norton users would
or could use Speedisk in place of DOS' Defrag (acually same
program).
If you have any questions or problems please feel free to
contact me. This program is being released as Freeware which
means I am not asking for monetary compensation (registration,
donation, etc.).
The archive should contain only the following files:
WAITFOR.EXE............Actual program
WAITFOR.DOC............WaitFor documentation
READ.ME................Update information
FILE_ID.DIZ............BBS description file
HUCKABEY.TXT...........Current list of James Huckabey
software
ARCHIVE.TXT............This list of files
James Huckabey
3621-A Fraser Street
Bellingham, WA 98226-2473 U.S.A.
(206) 671-2868 (voice, Pacific)